use slotmap::{KeyData, SecondaryMap, SlotMap};

slotmap::new_key_type! {
    /// A unique identifier for a model or view across the application.
    pub struct EntityId;
}

// impl From<u64> for EntityId {
//     fn from(value: u64) -> Self {
//         Self(KeyData::from_ffi(value))
//     }
// }

// impl EntityId {
//     /// Converts this entity id to a [u64]
//     pub fn as_u64(self) -> u64 {
//         self.0.as_ffi()
//     }
// }

// impl Display for EntityId {
//     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
//         write!(f, "{}", self.as_u64())
//     }
// }